package com.inspur.cloud.service.ambari;

import com.inspur.cloud.dao.ambari.ComponentStateDao;
import com.inspur.cloud.entity.ambari.ComponentStateEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ComponentStateService {
    @Autowired
    private ComponentStateDao componentStateDao;

    public List<ComponentStateEntity> findByComponentName(String componentName) {
        List<ComponentStateEntity> list = componentStateDao.findByComponentName(componentName);
        return list;
    }
}
